package com.zan.pattern.singleton.demo3;

/**
 * @Author Zan
 * @Create 2024/4/23 11:21
 * @Description : TODO(请用一句话描述该类的功能)
 * @ClassName: Client
 */
public class Client {
    public static void main(String[] args) {
        Singleton instance1 = Singleton.getInstance();
        Singleton instance2 = Singleton.getInstance();

        // 判断两次获取到的Singleton对象是否是同一个对象
        System.out.println(instance1 == instance2);
    }
}
